package com.winshare.saleAssistant.domain.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
import java.util.List;

@ApiModel
public class RoleCreateDTO {

    @NotBlank(message = "角色名称不可以为空")
    @Length(min = 1, max = 100, message = "角色名称长度需要在1-100个字之间")
    @ApiModelProperty(value = "角色名称不可以为空")
    private String roleName;

    @ApiModelProperty(value = "菜单列表")
    private List<MenuDTO> menuList;

    public RoleCreateDTO() {
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public List<MenuDTO> getMenuList() {
        return menuList;
    }

    public void setMenuList(List<MenuDTO> menuList) {
        this.menuList = menuList;
    }
}
